package com.lin.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
/*角色信息表*/
public class SysRoles {
    private Integer id;

    private String name;

    private String code;

    private String descn;

    //存放子菜单
    @TableField(exist = false)
    private List<SysMenus> sysMenus=new ArrayList<>();

    @TableField(exist = false)
    private List<SysRoles> sysRoles=new ArrayList<>();

    //存放当前登录的用户名
    @TableField(exist = false)
    private String userName;

    //存放临时菜单id
    @TableField(exist = false)
    private Integer sysMenusId;
}